package com.zhou.controller;


import com.zhou.service.ClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/client")
public class ClientController {
    @Autowired
    private ClientService clientService;

    @RequestMapping("/pull")
    public String pull() {
        try {
            clientService.pull();
        } catch (Exception e) {
            System.out.println("获取ip地址异常");
            e.printStackTrace();
        }
        return "注册服务成功";
    }
}
